package com.sayice.design.Visitor;

public class Fangfa extends Entry{
    String name;
    int amount;
    public Fangfa(String name, int amount){
        this.name=name;
        this.amount=amount;
    }
    @Override
    public void accept(Visitor v) {
        v.visit(this);
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public int amount() {
        return this.amount;
    }
}
